package com.open;

import com.open.dispatch.BuildDispatch;
import com.open.model.CodeGenerate;
import com.open.utils.YamlUtil;

//代码生成器主函数
public class Generate {
    public static void main(String[] args) {
        CodeGenerate generate = YamlUtil.loadConfig(CodeGenerate.class, "application.yml");
        BuildDispatch.CreateModel(generate);
        System.out.println("(♥◠‿◠)ﾉﾞ  open-generate start success  ლ(´ڡ`ლ)");
        System.out.println("╔══╗─╔══╗╔══╗╔╗╔╗╔╗╔╗╔══╗╔══╗");
        System.out.println("║╔╗╚╗║╔╗║║╔═╝║║║║║║║║║╔╗║╚═╗║");
        System.out.println("║║╚╗║║╚╝║║╚═╗║╚╝║║║║║║║║║╔═╝║");
        System.out.println("║║─║║║╔╗║╚═╗║║╔╗║║║║║║║║║╚═╗║");
        System.out.println("║╚═╝║║║║║╔═╝║║║║║║╚╝║║╚╝║╔═╝║");
        System.out.println("╚═══╝╚╝╚╝╚══╝╚╝╚╝╚══╝╚══╝╚══╝");
    }
}